package com.go.where.manager.service;

import com.go.where.manager.page.Pagination;
import com.go.where.manager.pojo.BannerInfo;
import com.go.where.manager.pojo.user.UserInfoVO;

/**
 * banner信息Service
 * 
 * @author java
 * 
 */
public interface BannerService {

	/**
	 * 根据主键id查询信息
	 * 
	 * @param cid
	 * @return
	 */
	public BannerInfo queryByPrimartKey(String id);

	/**
	 * 分页查询
	 * 
	 * @param customerInfo
	 * @return
	 */
	public Pagination<BannerInfo> queryPage(BannerInfo bannerInfo);

	/**
	 * 修改信息
	 * 
	 * @param bannerInfo
	 * @param currentUser
	 * 
	 * @return
	 */
	public int update(BannerInfo bannerInfo, UserInfoVO currentUser);

	/**
	 * 保存信息
	 * 
	 * @param bannerInfo
	 * @param currentUser
	 * 
	 * @return
	 */
	public int save(BannerInfo bannerInfo, UserInfoVO currentUser);

}
